<div class="widget-box">
<div class="widget-title">
    <span class="icon"><i class="icon-plus"></i></span>
    <h5>Inmueble</h5>
</div>
<div class="widget-content">
<?php
if(!empty($ambientes)){
    $atrFrm = array('class' => 'form-horizontal', 'id' => 'inmu-adicionales');
    //$atrInp = array('class' => 'input-mini','type' => 'text','name' =>'','value' => '');
    $atrBtn = array('class' => 'btn btn-inverse','type' => 'submit');
    echo form_open('inmueble/addinmueble_extras',$atrFrm);
    echo form_fieldset('Datos Adicionales.');
    ?>
<div class="span3">
    <p class="muted">Ambientes</p>
<?php
    foreach($ambientes as $amb) { ?>
    <div class="control-group">
        <label class="control-label" for="<?php echo $amb->desc_amb ?>"><?php echo $amb->desc_amb ?></label>
        <div class="controls">
            <div class="switch switch-small" data-on="success" data-off="warning" data-on-label="SI" data-off-label="NO">
                <?php 
               $atr_check = array('name' => 'amb'.$amb->id_amb,'id' => $amb->desc_amb,'value' => $amb->id_amb);
               echo form_checkbox($atr_check);
               ?>
            </div>
        </div>
    </div>
        <?php } ?>
</div>
<div class="span3">
    <p class="muted">Extra</p>
<?php
    foreach($adicionales as $adic) { ?>
    <div class="control-group">
        <label class="control-label" for="<?php echo $adic->desc_adic ?>"><?php echo $adic->desc_adic ?></label>
        <div class="controls">
            <div class="switch switch-small" data-on="success" data-off="warning" data-on-label="SI" data-off-label="NO">
                <?php 
               $atr_check = array('name' => 'adic'.$adic->id_adic,'id' => $adic->desc_adic,'value' => $adic->id_adic);
               echo form_checkbox($atr_check);
               ?>
            </div>
        </div>
    </div>
        <?php } ?>
</div>
<div class="span3">
    <p class="muted">Servicios</p>
<?php
    foreach($servicios as $serv) { ?>
    <div class="control-group">
        <label class="control-label" for="<?php echo $serv->desc_serv ?>"><?php echo $serv->desc_serv ?></label>
        <div class="controls">
            <div class="switch switch-small" data-on="success" data-off="warning" data-on-label="SI" data-off-label="NO">
                <?php 
               $atr_check = array('name' => 'serv'.$serv->id_serv,'id' => $serv->desc_serv,'value' => $serv->id_serv);
               echo form_checkbox($atr_check);
               ?>
            </div>
        </div>
    </div>
        <?php } ?>
</div>
<div class="span9">
    <?php echo form_button($atrBtn,'Siguiente >>'); ?>
</div>
<?php
echo form_fieldset_close(); 
echo form_close();
}
?>
</div>
</div>